package com.sponsorpay.sdk.android.utils;

import java.util.HashMap;
import java.util.Map;

public class SponsorPayBaseUrlProvider
{
  private static SponsorPayBaseUrlProvider INSTANCE = new SponsorPayBaseUrlProvider();
  private SPUrlProvider mUrlProviderOverride;
  private Map<String, String> urls = new HashMap()
  {
  };

  public static String getBaseUrl(String paramString)
  {
    return INSTANCE.getUrl(paramString);
  }

  private String getUrl(String paramString)
  {
    SPUrlProvider localSPUrlProvider = this.mUrlProviderOverride;
    String str = null;
    if (localSPUrlProvider != null)
      str = this.mUrlProviderOverride.getBaseUrl(paramString);
    if (StringUtils.nullOrEmpty(str))
      str = (String)this.urls.get(paramString);
    return str;
  }

  private void setOverride(SPUrlProvider paramSPUrlProvider)
  {
    this.mUrlProviderOverride = paramSPUrlProvider;
  }

  public static void setProviderOverride(SPUrlProvider paramSPUrlProvider)
  {
    INSTANCE.setOverride(paramSPUrlProvider);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.utils.SponsorPayBaseUrlProvider
 * JD-Core Version:    0.6.2
 */